package com.cloud.product.service.impl;

import com.cloud.product.entity.ProductCategory;
import com.cloud.product.repository.ProductCategoryRepository;
import com.cloud.product.service.ProductCategoryInf;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * describe:
 *
 * @author zhanghaixuan
 * @date 2018/09/10
 **/
@Service
public class ProductCategoryImpl implements ProductCategoryInf {

    @Autowired
    private ProductCategoryRepository productCategoryRepository;

    @Override
    public List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryList) {
        return productCategoryRepository.findByCategoryTypeIn(categoryList);
    }
}
